package com.zjitc.service;

import com.zjitc.common.ServerResponse;
import com.zjitc.pojo.User;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/29 15:02
 * @description:
 */
public interface UserService {

  ServerResponse<User> login(String username, String password);

  ServerResponse register(User user);

  ServerResponse<User> check_valid(String str);

  ServerResponse<User> get_user_info(String username);

  ServerResponse<User> forget_get_question(String username);

  ServerResponse<User> reset_password(String passwordOld, String passwordNew, User user);

  ServerResponse<User> update_information(String email, String question, String answer, String phone, User user);

  ServerResponse<User> get_information(String username);

  ServerResponse<User> checkQuestionAndAnswer(String username, String question, String answer);

  ServerResponse<User> forgetResetPassword(String username, String passwordNew, String forgetToken);

}
